<?php

namespace app\common\model;

use think\Model;

/**
 *广告model
 */
class Ads extends Model
{
    /**
     *后台广告分页列表
     */
    public static function page_lists($map, $adsp_id)
    {
        return self::alias('a')->where($map)->where(['a.is_del'=>0])->join('adsp b', 'a.belong_adsp_id = b.id')->field('a.*,b.adsp_name')->paginate(10, false, ['query' => ['id' => $adsp_id]]);

    }

}
